package com.dd.ent.car.common.player;

import java.util.concurrent.atomic.AtomicReference;

/**
 * Author:LiuJianSheng
 * Date:2016/7/28
 */
public class SeekToPositionMessage extends PlayerMessage {
    private int seekPosition;

    public SeekToPositionMessage(MediaPlayerWrapper mediaPlayer, AtomicReference<PlayerMessageState> messageState, int seekPosition) {
        super(mediaPlayer);
        this.seekPosition = seekPosition;
    }

    @Override
    public void runMessage() {
        getMediaPlayer().seekTo(seekPosition);
    }
}
